package com.huage.courseplatform.application.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.huage.courseplatform.framework.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("hg_student")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="学生",description="学生")
public class Student extends BaseEntity<Student> implements Serializable {
    @ApiModelProperty(value = "学生名")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    @ApiModelProperty(value = "出生时间")
    private String birthday;

    @ApiModelProperty(value = "联系地址")
    private String address;

    @ApiModelProperty(value = "母亲姓名")
    private String motherName;

    @ApiModelProperty(value = "母亲联系电话")
    private String motherPhone;

    @ApiModelProperty(value = "父亲姓名")
    private String fatherName;

    @ApiModelProperty(value = "父亲联系电话")
    private String fatherPhone;



}
